from django.urls import path, re_path
from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView, OrderBuyView

app_name = 'order'
urlpatterns = [
    path('place', OrderPlaceView.as_view(), name='place'),
    path('commit', OrderCommitView.as_view(), name='commit'), 
    path('pay', OrderPayView.as_view(), name='pay'), 
    path('check', CheckPayView.as_view(), name='check'), 
    re_path('buy/(?P<sku_id>\d+)$', OrderBuyView.as_view(), name='buy'),
    re_path('comment/(?P<order_id>.+)$', CommentView.as_view(), name='comment'),
]
